package mainstests;

import com.thoughtworks.xstream.XStream;

import entities.xml.PedidoVentaXML;
import finals.Finals;

public class PruebaLecturaPedidoVentaXML {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		XStream xs = new XStream();
		String strPedidoVenta = Finals.PEDIDO_VENTA_TEST;
		xs.alias(PedidoVentaXML.getAlias(), PedidoVentaXML.class);
		xs.autodetectAnnotations(true);
		PedidoVentaXML pedidoVentaXML = (PedidoVentaXML) xs.fromXML(strPedidoVenta);
		pedidoVentaXML.getListaItemPedidoVenta();

	}

}
